package com.vhall.component.entity.room.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author Y.G
 * @date 2023/8/3 20:41
 */
@Data
public class RoomPullStreamVO implements Serializable {
    /**
     * paas直播房间id
     */
    @NotBlank(message = "roomId不能为空")
    @ParamName(value = "room_id")
    private String roomId;

    @NotBlank(message = "streamUrl不能为空")
    @ParamName(value = "stream_url")
    @Pattern(regexp = "^(rtmp|http)s?://.*", message = "拉流地址格式不正确")
    private String streamUrl;

}
